import requests


url = "https://www.okx.com/api/v5/sprd/books?sprdId=BTC-USDT_BTC-USDT-SWAP&sz=10"
response = requests.get(url)
data = response.json()
print(data)